<#assign tit>商品选择</#assign>
<@page.html title=tit>
<script type="text/javascript">
    function dbClickReturn(row){  
        window.parent.addProduct(row);
        cancel();
    }
    
    function cancel() {
    	if(window.parent && window.parent.closeWin)
      		window.parent.closeWin();
    	else
      		window.close();
    }
</script>
<div style="">

  <div class="search">
    <form id="fm_query" action="_getProductList">
      <dl>
        <dt>商品名称</dt>
        <dd><input type="text" name="productName" value=""></dd>
        <dt>助记符</dt>
        <dd><input type="text" name="spell" value=""></dd>
        <dt>商品类别</dt>
        <dd><select name="productType" style="width:100px;"><option value="">全部</option><#if productTypeLst??><#list productTypeLst as t><option value="${t.id}">${t.id} - ${t.name}</option></#list></#if></select></dd>
      </dl>
      <dl>
        <dd class="button"><input type="button" value="查询" onclick="query();"></dd>
      </dl>
      <input type="hidden" id="shopCode" name="shopCode" value="${shopCode!}">
      <input type="hidden" id="saleFlg" name="saleFlg" value="${saleFlg!}">
    </form>
  </div>
  <div id="div_list">
  </div>
</div>
<script type="text/javascript">query();</script>
</@page.html>